home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 353_02 / box.h < prev    next >
Text File  |  1992-01-18  |  375b  |  19 lines

  1.                                  // Chapter 5 - Program 7
  2.  
  3. class box {
  4.    int length;
  5.    int width;
  6. public:
  7.    box(void);         //Constructor
  8.    void set(int new_length, int new_width);
  9.    int get_area(void) {return (length * width);}
  10.    ~box(void);        //Destructor
  11. };
  12.  
  13.  
  14.  
  15.  
  16. // Result of execution
  17. //
  18. // This header file cannot be compiled or executed
  19.